import { createStore } from 'redux';

let initState = {
  TABSTATE: {}, //当前选中的tab标签
  BASIC: {}, //基本信息的数据年龄姓名等以及相关配置项
  EDUCATIONAL: [], //教育背景信息
};
// BASIC
function reducer(state = initState, action) {
  let { type, payload } = action;
  return { ...state, [type]: payload };
}
const store = createStore(reducer);
export default store;
